//
//  GRStoreTypeViewCell.m
//  YC_GRice
//
//  Created by Feng Liu on 2018/8/25.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import "GRStoreTypeViewCell.h"

@implementation GRStoreTypeViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _typeIMG.layer.borderColor = [KGMTHEM_COLOR CGColor];
}

-(void)setModel:(GRStoreClassModel *)model {
    [self.typeIMG sd_setImageWithURL:[NSURL URLWithString:model.icon]];
    _storeType.text = model.name;
}

-(void)setIsSelected:(BOOL)isSelected {
    _typeIMG.layer.borderWidth = isSelected ? 2 : 0;
}

@end
